package com.hyjx.framework.service.model;

import com.hyjx.framework.uc.menu.MenuFunc;
import com.hyjx.framework.uc.menu.MenuModel;

import java.io.Serializable;
import java.util.Map;

/**
 * 缓存子系统、菜单、操作
 *
 * @author Peter
 */
@SuppressWarnings("serial")
public class CacheMenu implements Serializable {
    private String menuCode;
    private MenuModel menu;

    Map<String, MenuFunc> operates;

    public String getMenuCode() {
        return menuCode;
    }

    public Map<String, MenuFunc> getOperates() {
        return operates;
    }

    public void setOperates(Map<String, MenuFunc> operates) {
        this.operates = operates;
    }

    public void setMenuCode(String menuCode) {
        this.menuCode = menuCode;
    }

    public MenuModel getMenu() {
        return menu;
    }

    public void setMenu(MenuModel menu) {
        this.menu = menu;
    }

    public CacheMenu(String menuCode, MenuModel menu, Map<String, MenuFunc> operates) {
        super();
        this.menuCode = menuCode;
        this.menu = menu;
        this.operates = operates;
    }
}